<?php /* Smarty version 2.6.25, created on 2013-02-25 23:13:54
         compiled from city.htm */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>学校列表</title>

<script type="text/javascript" src="<?php echo $this->_tpl_vars['ROOT']; ?>
/images/Dialog.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['ROOT']; ?>
/images/tc.js"></script>
</head>
<body>

<div id="div1"></div>

<?php unset($this->_sections['city']);
$this->_sections['city']['name'] = 'city';
$this->_sections['city']['loop'] = is_array($_loop=$this->_tpl_vars['city']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['city']['show'] = true;
$this->_sections['city']['max'] = $this->_sections['city']['loop'];
$this->_sections['city']['step'] = 1;
$this->_sections['city']['start'] = $this->_sections['city']['step'] > 0 ? 0 : $this->_sections['city']['loop']-1;
if ($this->_sections['city']['show']) {
    $this->_sections['city']['total'] = $this->_sections['city']['loop'];
    if ($this->_sections['city']['total'] == 0)
        $this->_sections['city']['show'] = false;
} else
    $this->_sections['city']['total'] = 0;
if ($this->_sections['city']['show']):

            for ($this->_sections['city']['index'] = $this->_sections['city']['start'], $this->_sections['city']['iteration'] = 1;
                 $this->_sections['city']['iteration'] <= $this->_sections['city']['total'];
                 $this->_sections['city']['index'] += $this->_sections['city']['step'], $this->_sections['city']['iteration']++):
$this->_sections['city']['rownum'] = $this->_sections['city']['iteration'];
$this->_sections['city']['index_prev'] = $this->_sections['city']['index'] - $this->_sections['city']['step'];
$this->_sections['city']['index_next'] = $this->_sections['city']['index'] + $this->_sections['city']['step'];
$this->_sections['city']['first']      = ($this->_sections['city']['iteration'] == 1);
$this->_sections['city']['last']       = ($this->_sections['city']['iteration'] == $this->_sections['city']['total']);
?>
				   <a href="school.php?action=choose_school&cid=<?php echo $this->_tpl_vars['city'][$this->_sections['city']['index']]['id']; ?>
"><?php echo $this->_tpl_vars['city'][$this->_sections['city']['index']]['name']; ?>
</a><br>
<?php endfor; endif; ?>

</body>
